package com.zzty.zzlp.serviceimpl;

import com.zzty.zzlp.dao.UserMapper;
import com.zzty.zzlp.entity.User;
import com.zzty.zzlp.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User searchByName(String name) {
        return userMapper.selectByName(name);
    }
}
